<?php $this->headScript()->appendFile($this->JS_PATH . 'preferences.js'); ?>
<?php echo $this->flashmessages();
?>
<div id="preferences-listing"></div>
<div class="container-fluid">
    <div id="pad-wrapper" class="form-page">

        <div class="row-fluid form-wrapper">
            <div class="span column">
                <?php if ($this->succesMessage != ''): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->succesMessage; ?>
                    </div>
                <?php endif; ?>

                <?php if (count($this->errorMessageArray) > 0): ?>
                    <div class="alert alert-error">
                        <?php foreach ($this->errorMessageArray as $erroValue): ?>

                            <div class="text-left">
                                <i class="icon-remove-sign"></i>
                                <?php echo $erroValue; ?>
                            </div>

                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                 <h3><?php echo $this->translate("site_preferences_header"); ?></h3>
                 <br/>
             
                <form role="form"  id="preferences-form" name="preferences-form"  enctype="multipart/form-data"  action="" method="post">
                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_admin_from_name"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->ADMIN_FROM_NAME; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_admin_from"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->ADMIN_FROM; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_admin_sign"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->ADMIN_SIGN; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_admin_to_name"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->ADMIN_REPLY_NAME; ?>
                    </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_admin_reply"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->ADMIN_REPLY; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_page_record"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->PAGE_RECORD; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("preferences_frm_default_language"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->DEFAULT_LANGUAGE; ?>
                    </div>
                    
                    <div class="field-box">
                        <label><?php echo $this->translate("header_logo"); ?>:
                        (Image should be 160 X 25 [width X height])
                        </label>
                        <?php 
                        if ($this->imageName != ""): ?>
                        <?php if(file_exists($this->UPLOAD_PATH."logo/" . $this->imageName)):?> 
                        <?php 
                                $src_path = $this->PUBLIC_PATH . "upload/logo/".$this->imageName; 
                        ?>
                        <img src="<?php echo $src_path; ?>"/>&nbsp;
                        <br>
                            <?php endif; ?>
                            <?php endif; ?>
                        <input type="file" name="header_logo" id="header_logo">  
                   
                    </div>
                    
                    <br>

                    <div class="field-box">
                        <?php echo $this->form->Save; ?>
                        <?php echo $this->form->Reset; ?> 
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
